<?php
namespace App\Services\Core\Store\Hengxin;

class HengxinConfig
{
    //开通小薇商户证件类型
    const certifTp = '01';

    //无积分交易利率
    const moneyRateNull = 0.0048;
    const ServiceChargeNull = 300;

    //有积分交易利率
    const moneyRate= 0.006;
    const ServiceCharge = 300;

    //三方的签名,和一般签名还不一样,类似位移
    const SIGN = "11111111111111111111111111111111";
    //测试机构号
    const INSTITUTIONNO = "10000000001";

    //小微商户
    const postdx = "https://www.96199.com.cn:8080/hxt/postxw?agentId=900280001&signature=";
    const updateqrc = "https://www.96199.com.cn:8080/hxt/updateqrc?agentId=900280001&signature=";
    const fetch =  "https://www.96199.com.cn:8080/hxt/queryMid?agentId=900280001&signature=";


    //商户号
    const merId_no = '180118142606033';//无积分
    const trid_no = '180118142606033';//无积分
    const merId = '180118142606034';//有积分
    const trid = '180118142606034';//有积分

    //公钥
    const PUBLICKEY =
"-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDNGB1N58aFiXHaAaLXyupbKdiUjgJl9KyEnN5FWq+kjOiefuFiYLw8zodgmXNmGwJHGJDxxN4Os0QXQkbyMqrg+NTH+Nz54PZ5QK87ZgfiNDnWwuuAOuBsIXL1rrg6Jco57/kYky4M9AIjGv0yLrqqH+f+QdZmBQHe8XtswX1hJwIDAQAB
-----END PUBLIC KEY-----";

    //版本号
    const VERSION = "5.1.0";
    const signMethod = "01";
    const bankCardTypeTrans = '02'; //交易时候卡类型
    //七牛空间
    const BUCKET = 'xinyongka';

    const frontUrl = "https://api.anwenqianbao.com/v0/back/fontUrl";    //开通时候返回到前台路径
//    const frontUrl = "https://www.shoujiweidai.com/credit_card/#/transaction";    //开通时候返回到前台路径
    const frontUrlback = "https://api.anwenqianbao.com/v0/back/fontUrlBack";//开通时候返回到前台路径移动端
//    const frontUrlback = "https://www.shoujiweidai.com/credit_card/#/back";    //开通时候返回到前台路径移动端

    const  backUrl = "https://api.anwenqianbao.com/v0/hengxin/backUrl";


    const frontTransUrl="https://gateway.chinaepay.com/trans/frontTransTokenURL";//开通
    const backTransUrl="https://gateway.chinaepay.com/trans/backTransTokenURL";//短信
    const singleQueryUrl="https://gateway.chinaepay.com:54041/XW/Trans";//交易
    const batchTransUrl="https://gateway.chinaepay.com:54041/XW/Update";//更新
    const queryTransUrl="https://gateway.chinaepay.com:54041/XW/Query";//查询
    const DfTransUrl="http://114.113.238.50:54041/XW/Update";//更新
//    const appTransUrl="http://114.113.238.50:10001/trans/backTransTokenURL";
//    const cardTransUrl="http://114.113.238.50:10001/trans/backTransTokenURL";

    //通知接口
    const backUrlTransQuery="https://api.anwenqianbao.com/v0/back/backUrlTransQuery"; //有积分消费通知
    const backUrlTransFont="https://api.anwenqianbao.com/v0/back/backUrlTransFont"; //无积分消费通知
    const backUrlDF = "https://api.anwenqianbao.com/v0/back/backUrlDF";//代付通知





}